from rest_framework.pagination import PageNumberPagination
# 默认分页器
class defaultPagination(PageNumberPagination):
    page_size = 8 # 一页多少条数据
    page_query_param = 'page' # 分页查询条件key
    page_size_query_param = 'size'
    # max_page_size = 8